<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
<h3 style="text-align: center;">商品列表</h3>
<table border='2' style="width:400px;height:
130px;border-collapse: collapse;margin:0px auto;text-align:
center;">
    <tr>
        <td>商品 ID</td>
        <td>商品名</td>
        <td>商品展示图</td>
        <td>相关操作</td>
    </tr>
    <foreach name="infos" item="row">
        <tr>
            <td>{$row['gid']}</td>
            <td>{$row['gname']}</td>
            <td><img width="100"
                     src="__PUBLIC__/Uploads/{$row['imgpath']}" /></td>
            <!--注意 修改链接要将商品 id 一并写入-->
            <td><a
                    href="__CONTROLLER__/revise/gid/{$row['gid']}"> 修 改 </a> <a
                    href="__CONTROLLER__/index">返回继续添加</a></td>
        </tr>
    </foreach>
</table>
</body>
</html>